﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Design;
using System.ComponentModel;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace UIDesigner.Design
{
    public class ObjectDataGridDesigner : ParentControlDesigner
    {
        private IComponent m_objComponent;

        public ObjectDataGridDesigner()
        {

        }

        public override void DoDefaultAction()
        {
            base.DoDefaultAction();
        }

        public override void Initialize(IComponent component)
        {
            m_objComponent = component;

            base.Initialize(component);
        }

        public void ConfigureHandler(object sender, EventArgs e)
        {
        }

        public override bool CanBeParentedTo(IDesigner parentDesigner)
        {
            return true;
        }

        public override DesignerVerbCollection Verbs
        {
            get 
            {
                DesignerVerbCollection rgVerbs = new DesignerVerbCollection();

                rgVerbs.Add(new DesignerVerb("Configure", new EventHandler(ConfigureHandler)));

                return rgVerbs;
            }
        }
    }
}
